<?php

declare(strict_types=1);

namespace Bxy\Jwt;

use Hyperf\Contract\ConfigInterface;
use Psr\Container\ContainerInterface;


class JwtFactory
{
    public function __invoke(ContainerInterface $container)
    {
        $config = $container->get(ConfigInterface::class);
        return make(Jwt::class, [$config->get('bxy_auth', [])]);
    }
}
